<!--begin path way -->
<div class="pathway clearfix">
    <ul>
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <li>
            <a <?php if (isset($breadcrumb['index'])) echo 'class="homepage"'; ?> href="<?php echo $breadcrumb['link']; ?>">
                <?php echo $breadcrumb['title']; ?>
            </a>
        </li>
        <?php } ?>
    </ul>
</div>
<!--end path way -->

<?php if (isset($error)) { ?>
<div class="notice">
    <h3><?php echo $error; ?></h3>
</div>
<?php } ?>

<div id="pageLogin" class="page clearfix">
    <h3 class="pageTitle"><?php echo $title; ?></h3>

    <div class="col-350 registerWrapper">
        <h6>Đăng kí tài khoản mới</h6>
        <div class="box" style="height: 150px;">
            <p>Nếu đã có tài khoản sẽ giúp bạn mua hàng nhanh hơn, có thể xem lịch sử mua hàng, ...</p>
            <p><a href="<?php echo Link::build('account/register'); ?>" class="button">Đăng kí</a></p>
        </div>
    </div>

    <div class="col-350 last loginWrapper">
        <h6>Đăng nhập</h6>
        <div class="box" style="height: 150px;">
            <form action="<?php echo Link::build('login/login'); ?>" method="post">
                <p>
                    <label for="ctrl_email">Email:</label>
                    <input type="email" id="ctrl_email" name="email" value="<?php if (isset($email)) echo $email; ?>" size="30" />
                </p>
                <p>
                    <label for="ctrl_password">Mật khẩu:</label>
                    <input type="password" id="ctrl_password" name="password" size="30" />
                </p>
                <p>
                    <button type="submit" name="do" value="login" class="button">Đăng nhập</button> <a href="<?php echo Link::build('account/forgot-password'); ?>">Quên mật khẩu?</a>
                </p>
            </form>
        </div>
    </div>
</div>